Amazon interview question

sort points in Close K region leetcode