Min Stack Leetcode Solution In Python For All Selected Lines