Pergunta de entrevista da empresa IBM

Q: Write a code to check whether the word is a palindrome.