Ciena Interview Question

Remove elements that are not duplicate in an array