Infosys interview question

To write a small code on palindromes