Pregunta de entrevista de Heal Software Inc

Given an array and a no. K. Print the largest K elements.