Maximal Rectangle Area Leetcode Python