Amazon interview question

Write a code that prints out all the palindrome words in a string.