Pergunta de entrevista da empresa Cognizant

Write program for reverse of string?