Synchronoss interview question

Java program to return repeated words with the count