Angular Minds interview question

Find Duplicates from array of integers