Negation added for Duplicate in an array