Next Greater Element Using Stack Leetcode