Problem
Given an array ofpoints where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).
The distance between two points on the X-Y plane is the Euclidean distance (i.e., √(x1 - x2)² + (y1 - y2)²).
You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in).
Examples
Constraints
1 <= k <= points.length <= 10^4-10^4 <= xi, yi <= 10^4