Pregunta de entrevista de Amadeus

find nth highest element from an array