Given a circular integer array, return the next greater number for every element. The next greater number is the first greater number to its next in the array. Search circularly if necessary. If it doesn't exist, return -1 for that number.
Click Run to execute sample tests.