CGTech interview question

Build a program that will find if there are duplicates in an array