Citi Interview Question

Q3. Write a program to reverse a string.