Amazon Interview Question

K closest points to origin on leetcode