Leetcode Monotonic Stack Python Programs With Solutions