Pregunta de entrevista de Oracle Financial Group

Reverse a string in most optimal approach