Ulster Bank interview question

Write an small algorithm that checks if a word is a palindrome