Clean Power Research interview question

Leetcode medium question K-closest points to origin