Amazon Interview Question

Find the duplicates in an array?