SUGAR Cosmetics Interview Question

Getting duplicate numbers from list