UKG Interview Question

Program on finding duplicate values and count from an integer array