結果 : reverse a string without using built-in functions leetcode