CloudNow interview question

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