Aditi Consulting interview question

Count the duplicate digit in array.