IBM interview question

Find out if there are duplicates within an array.