Leetcode 556. Next Greater Element III