Maximum Width Ramp Leetcode Javascript Problems