Citi interview question

Q3. Write a program to reverse a string.