For each element in array, find the next greater element to its right. If none exists, use -1.
Examples