Next Greater Element Leetcode Solution 1911