Capgemini interview question

write a program for palindrome?