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
function countInRange ( l , r , q ) { let count = 0 ; for ( let i = l ; i <= r ; i ++ ) {