Pergunta de entrevista da empresa Cognizant

Reverse a string without using built in method