Pregunta de entrevista de Cognizant

Write down the code to reverse a string.