Capgemini interview question

Write a Java code for palindrome