Nagarro interview question

find duplicate in array ?