what will be the complexity of counting some :
point 1 : n , finding the largest element
point 2 : n , make the freq count
point 3 : n, assing the elements in original arrays and some what less than n when frequency count value is decreaes and assing to original one