Amazon Interview Question

How to find the k closest data points to the origin given n data points.