
Count Duplicate elements in an array
Given an array of intergers, and need to count the number of duplicate array elements. For example if the array contains {1,2,3,2,1,4} then {1,2} duplicate elements and output should be 2. Only the constraints...