Paycom Interview Question

Coding question for finding duplicates