Nanoprecise interview question

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