結果 : write ac program to reverse a string using user defined function