Pregunta de entrevista de Infosys

Reverse a string, find second highest salary