AT&T interview question

Write a program to check if a string is a palindrome.