Amazon interview question

How would you find duplicates in two unsorted integer arrays