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 ind = lower_bound ( smallestFreq . begin ( ) , smallestFreq . end ( ) , frequency ) - smallestFreq . begin ( ) ;