OpenText interview question

Write a program to reverse a given string.