Leetcode Monotonic Stack Python Programs Using Variables In On Shape