Grand temple-unable to understand the problem

what I understand from the problem, the output of the given test case should be 6. (considering the maximum area between the coordinates (2,2);(2,4);(5,2);(5,4))

@sayedwajahatullah1234 hey sayed
you are supposed to find the max area, and for having an area you must have a rectangle for that you will need 4 points and for given test case we found that 2,2), (2,4), (5,2), (5,4) these are the 4 points which will give us the maximum area. There is one thing you need to keep in mind while calculating the area i.e. the area will be calculated from the edge next to the left edge, the edge above the bottom edge, the topmost edge and the rightmost edge, therefore for the region (2,2) , (2,4) , (5,2) , (5,4) the actual area will be considered from (3,2), (3,4), (5,2), (5,4) respectively.

Thank you for the help. I have solved the problem now. But still I’m not able to understand, where has the question mentioned that the area has to be calculated from the edge next to the left edge, the edge above the bottom edge, the topmost edge and the rightmost edge.

@sayedwajahatullah1234 hey sayed do you need more elaboration about this problem ?.