Max Rectangular Area In Histogram Leetcode Javascript