IBM interview question

Palindrome program in java language