UKG interview question

Program on finding duplicate values and count from an integer array