Bloomberg Interview Question

find if an array include duplicates