Virtusa interview question

Write a program on palindrome