Question d’entretien chez Amadeus

find nth highest element from an array