Leetcode Monotonic Stack Python Programs Using Variables To Write