human
Maximum Consecutive Zeroes in Concatenated Binary String | returns the maximum size of a substring consisting only of zeroes after k concatenation.
stores the maximum length of the required substring.
if the current character is 0.
stores maximum length of current substrings with zeroes.
if the whole is filled with zero.
computes the length of the maximal prefix which contains only zeroes.
computes the length of the maximal suffix which contains only zeroes.
if more than 1 concatenations are to be made.
Driver code"
Solution in Python:

=====
Write me a code to maximum Consecutive Zeroes in Concatenated Binary String and the other steps required?
assistant
#Here is code to maximum Consecutive Zeroes in Concatenated Binary String and the other steps required.
 def max_length_substring ( st , n , k ) :
	max_len = 0
	len = 0
	for i in range ( 0 , n ) :
		if ( st [ i ] == '0' ) :
			len = len + 1 ;
		else :
			len = 0
		max_len = max ( max_len , len )
	if ( max_len == n ) :
		return n * k
	pref = 0
	suff = 0
	i = 0
	while ( st [ i ] == '0' ) :
		i = i + 1
		pref = pref + 1
	i = n - 1
	while ( st [ i ] == '0' ) :
		i = i - 1
		suff = suff + 1
	if ( k > 1 ) :
		max_len = max ( max_len , pref + suff )
	return max_len
n = 6
k = 3
st = "110010"
ans = max_length_substring ( st , n , k )
print ( ans )