Virtusa Interview Question

write code of palindrome in java?