American Express interview question

Write code for a Palindrome