Pergunta de entrevista da empresa Oracle

Reverse a string, asked different approaches.