結果 : string palindrome in java without using inbuilt function