_Sam's submission of Closest points queries | CodeChef