Domanda di colloquio di KoderLabs

How would you check if an array has duplicates