結果 : write a function to reverse a string without using built-in functions