If current element is >= size of input array , if will be greater than all elements which can be considered as our solution , as it cannot be greater than size of array .
else if ( arr [ i ] >= n ) { countArr [ n ] ++ ; }