Infosys interview question

Write string palindrome program in language of your choice