Google interview question

write a program to reverse a given string?