General Motors (GM) interview question

Write an algorithm to tell if a string is a palindrome.