Pergunta de entrevista da empresa Fidelity Investments

Reverse a string without using built-in functions