Question d’entretien chez OpenText

Write a program to reverse a given string.