Paycom interview question

Duplicate elements in a list