Leetcode Next Greater Element Coding