Maximum Width Ramp Leetcode Problems Python