https://practice.geeksforgeeks.org/problems/max-rectangle/1