General Motors (GM) Interview Question

How would you write a function that determine if a word is a palindrome?