Pergunta de entrevista da empresa OpenText

Write a program to reverse a given string.