Maximal Rectangle Area Leetcode Javascript Solution