Amadeus Interview Question

find nth highest element from an array