Pregunta de entrevista de Rapleaf

How to find the K greatest elements in an array..