Maximal Rectangle Area Leetcode Problems Python