Question d’entretien chez Cognizant

Write down the code to reverse a string.