Next Greater Element Finder
Given an array of integers `nums`, return an array `answer` such that `answer[i]` is the next greater element for nums[i] in nums. If there is no greater element, put -1.
Given an array of integers `nums`, return an array `answer` such that `answer[i]` is the next greater element for nums[i] in nums. If there is no greater element, put -1.