Leetcode Monotonic Stack Python Programs With Source