Count the number of strings in A [ ] which has the frequency of the smaller character less than the frequency of the smaller character of the String in B [ ]
int [ ] array = new int [ smallestFreq . Count ] ; int k = 0 ; foreach ( int val in smallestFreq ) { array [ k ] = val ; k ++ ; } int ind = lower_bound ( array , 0 , smallestFreq . Count , frequency ) ;