Domanda di colloquio di Heal Software Inc

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