Coforge interview question

write a program for palindrome.