Amazon Interview Question

sort points in Close K region leetcode