QUESTION
We are given a circular array, print the next greater number for every element. If it is not found print -1 for that number. To find the next greater number for element Ai , start from index i + i and go uptil the last index after which we start looking for the greater number from the starting index of the array since array is circular.
showing TLE