Maximal Rectangle Leetcode Solution