Question d’entretien chez Heal Software Inc

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