Pergunta de entrevista da empresa Standard Chartered Bank

reverse a string without using reverse method