IBM Interview Question

Find out if there are duplicates within an array.