Capgemini interview question

Provide a function/algorithm for checking if a word is a palindrome.