ServiceNow Interview Question

Duplicate elements in the array