Juniper Networks interview question

duplicate elements in a array