Array Networks Interview Question

ONE question related to array find duplicate element in array