Next Smaller Element Leetcode Problem