Removed dot from output.
Extracted method in tests.
Implemented result generation.
Main program prints result after searching for duplicates.