ServiceNow interview question

Duplicate elements in the array