Mphasis interview question

Java program to Find duplicate word in a given string using collections