Pergunta de entrevista da empresa CloudNow

Find if a duplicate is present in this array using the respective collection