Amazon interview question

K closest points to origin on leetcode