Maximal Rectangle Area Leetcode Problems Javascript Array