Eze Software interview question

finding duplicates in an array