Expedia Group interview question

Find duplicates in the int array