Pergunta de entrevista da empresa SAP

Write a code that would check if a given word is palindrome