Array Networks interview question

ONE question related to array find duplicate element in array