Capgemini Interview Question

write a program for palindrome?