Function to find the number of ways to replace ' ? ' in string t to get the same count of 0 s and 1 s in the string S and T
def countWays ( s , t ) : NEW_LINE INDENT n = len ( s ) ; NEW_LINE sum1 = 0 NEW_LINE sum2 = 0 NEW_LINE K = 0 NEW_LINE DEDENT