Aline Global interview question

Find duplicate in an array