Next Smaller Element Leetcode Python Challenges Using Tuples