EPAM Systems interview question

Give an algorithm that finds duplicates in a given 2 dimensional array.