結果 : reverse string using while loop java