CEIA interview question

Code a program to check if two words are palindromes