Next Greater Integer Leetcode Javascript Questions