Pergunta de entrevista da empresa KoderLabs

How would you check if an array has duplicates