text: Function to count numbers in the range [ l , r ] such that all of the digits of the number and it 's product with q are unequal
code: static int countInRange ( int l , int r , int q ) { int count = 0 ; for ( int i = l ; i <= r ; i ++ ) {