SUGAR Cosmetics interview question

Getting duplicate numbers from list