ADP interview question

Check if array contains duplicates