Pregunta de entrevista de Amazon

How would you reverse a string?