Nearest Smaller Element Leetcode Python Answers