Pergunta de entrevista da empresa Atos

Reverse a string without using inbuilt method and without printing it in backward direction.