Bloomberg interview question

find if an array include duplicates