Count positions where characters differ without '?' (fixed differences) and positions where at least one character is '?' (flexible differences). Minimum differences come from fixed mismatches, and ...