Absa Capital interview question

What do you use for searching duplicates in an array.