BioCatch interview question

find duplicate val in array