Infosys interview question

write a code for palindrome