Pergunta de entrevista da empresa HCLTech

Write a program to reverse a string.