Grand Temple: Unable to get the logic

Please help me through this question. As far as I know,the initial steps are:
i)sort the coordinates according to x-coordinates
ii)sort the cordinates according to y-coordinates
aim: to choose two consecutive coordinates whose x-distance is largest
and to choose two consecutive coordinates whose y-distance is largest.

is this logic correct?

yes
All we need to do is just store all the X and Y coordinates and then sort them. Then we will calculate maximum ΔX and ΔY where ΔX = (Xi -Xi-1) & ΔY = (Yi -Yi-1). Then the area will be (ΔY-1)*(ΔX-1)

Thanks ma’am. I get it.