Paycom interview question

Coding question for finding duplicates