Microsoft interview question

Find all duplicate pairs in an integer array.