Find Nearest Point That Has the Same X or Y Coordinate - DSA Problem | Talentd