Pergunta de entrevista da empresa Capgemini

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