Pergunta de entrevista da empresa Northcorp Software

Second highest salary of a employees. How to sort an array.