Question d’entretien chez Infosys

How would you go about reversing a string?