結果 : reverse a string in c++ using function