Given an array of integers, and there is a single type of query.
Query - (L, R, X)
Find the elements less than 'X' in the range (L, R) both inclusive.
PS: all the queries are provided before hand i.e. we need to devise an offline algorithm to answer all the queries.