counter - counts the repeating elements gives the results in dict format like value:repeated times ...
// Step1: Find out the maximum element from the given array. //Step 2: Initialize a countArray[] of length max+1 with all elements as 0. // This array will be used for storing the occurrences of the ...