Expedia Group interview question

find duplicate numbers in an array