Ubisoft interview question

find duplicate elements of an array