Infosys interview question

write a code program for palindrome.