Infogain interview question

Given array find all the duplicates in the array