Maximum Width Ramp Leetcode Javascript 30