Pregunta de entrevista de Infosys

How would you go about reversing a string?