Question d’entretien chez Microsoft

Find all duplicate pairs in an integer array.