General Motors (GM) Interview Question

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