Amadeus interview question

find nth highest element from an array