Next Smaller Element Leetcode Question