OSI Digital interview question

write a program to reverse the string?