Infosys Interview Question

Reverse a string, find second highest salary