Amazon interview question

the nearest k points to the origin point