EPAM Systems Interview Question

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