Pergunta de entrevista da empresa Morgan Stanley

Reverse string, easy lt question basically.