I cannot find an approach to this question

tried making a histogram for max rectangular area but biving tle

@Satvik_10 just visualize the question, you will notice that area is simply max(del X)*max(del Y) where del represents side!
To do this first sort x and y coordinates, for further hint try editorial