Pregunta de entrevista de Lam Research

Sort k nearest neighbours in an array