This means that we cannot edit the current character as it 's frequency  in string X is equal to or less  than the frequency in string Y.  Thus, we go to the next position
if ( ctrx [ X [ i ] - ' A ' ] == 0 ) continue ;