General Motors (GM) Interview Question

Code how to determine if a string is a palindrome.