If the required element is neither a multiple of A nor a multiple of B then the multiples of C need to be checked
if ( res == - 1 ) : NEW_LINE INDENT res = checkC ( A , B , C , K ) NEW_LINE DEDENT return res NEW_LINE