Hawaiian Airlines Interview Question

How to program whether a word is a palindrome.