Pergunta de entrevista da empresa Cognizant

Write a program to reverse the string.