Maximal Rectangle Area Leetcode Javascript Interview