Anonymous interview question

write a program to reverse string