Deloitte Interview Question

easy cool asked about arrays, duplicate values in an array