how to print palindrome words in given string ??
input : madam arora teaches malayalam
o/p: madam, arora,malayalam.
i tried my own but not working pls help