DXC Technology interview question

find the duplicates in array