Maximum Width Ramp Leetcode Problems Javascript Map Method