Next Smallest Element On Left Leetcode Solutions With Explanation