Ingenuity Gaming interview question

Some int array based questions, like find duplicates.