UKG interview question

Find duplicates in a list