Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try sorting the points
Think whether the y-axis of a point is relevant
Solve with full IDE support and test cases