Infogain Interview Question

Given array find all the duplicates in the array