Tripadvisor Interview Question

Implement a method that determines if a word is a palindrome.