Fixed little bug.

The program will print wrong hint when there is **no duplicated** words in user's inputs.