Microsoft Interview Question

Find all duplicate pairs in an integer array.