結果 : string palindrome in java without using function