Paycom Interview Question

Duplicate elements in a list