BNP Paribas interview question

find duplicate using collections