Pergunta de entrevista da empresa Nanoprecise

Write a Python function to reverse a given string without using built-in functions.