Question d’entretien chez Capgemini

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