Roku Interview Question

Count no of duplicate numbers in an array