Capgemini Interview Question

Write a Java code for palindrome