human
Maximum consecutive repeating character in string | Returns the maximum repeating character in a given string.
Traverse string except last character.
If current character matches with next.
If doesn 't match, update result  (if required) and reset count.
Driver code"
Solution in Python:
 What is a code to maximum consecutive repeating character in string and the other steps required?
assistant
#Here is code to maximum consecutive repeating character in string and the other steps required.
 def maxRepeating ( str ) :
	n = len ( str )
	count = 0
	res = str [ 0 ]
	cur_count = 1
	for i in range ( n ) :
		if ( i < n - 1 and str [ i ] == str [ i + 1 ] ) :
			cur_count += 1
		else :
			if cur_count > count :
				count = cur_count
				res = str [ i ]
			cur_count = 1
	return res
if __name__ == " _ _ main _ _ " :
	str = " aaaabbaaccde "
	print ( maxRepeating ( str ) )