Accenture interview question

Write a code of palindrome