Bloomberg Interview Question

Next Greater Element II on LeetCode