Question d’entretien chez Infosys

Reverse a string, find second highest salary