Whirlpool Corporation Interview Question

Coding: check if the word is a palindrome.