AT&T Interview Question

Check if a string is a palindrome