Pregunta de entrevista de OpenText

Write a program to reverse a given string.