UFL interview question

to find if there is any duplicate value in an integer array