Mphasis interview question

Can you write a code to check for a palindrome..