Juniper Networks Interview Question

how to find two duplicate numbers among N numbers