Nagarro Interview Question

find duplicate in array ?