UST Interview Question

Find duplicate elements an array