Coforge Interview Question

write a program for palindrome.