Egnyte Interview Question

Find duplicates in an array.