Motadata Interview Question

Return duplicate elements in the array