DXC Technology Interview Question

find the duplicates in array