DotPe interview question

write a program in given line words are palindrome.