Anonymous interview question

Palindrome i have to do using java