Next Smaller Element Leetcode Javascript 30