Juniper Networks Interview Question

duplicate elements in a array