Google interview question

Using your favorite language write a program to check a palindrome