Amazon Interview Question

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