Next Smaller Element Leetcode Python Problems