Pregunta de entrevista de Standard Chartered Bank

reverse a string without using reverse method