Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Brute Force the intersection area of each pair of rectangles.
Two rectangles will not overlap when the bottom left x coordinate of one rectangle is greater than the top right x coordinate of the other rectangle. The same is true for the y coordinate.
The intersection area (if any) is also a rectangle. Find its corners.