Leetcode Monotonic Stack Python Program To Calculate