Report question

Question: How to keep only duplicates efficiently?