Pregunta de entrevista de Google

write a program to reverse a given string?