Altimetrik Interview Question

Count duplicates in a integer array