Nearest Smallest Element Leetcode Two