Red Bus interview question

write a program to reverse the string