Aditi Consulting Interview Question

Count the duplicate digit in array.