Infosys Interview Question

Write an algorithm and program to determine whether or not a word is a palindrome.