max_count and count to 1.previous to the first character of s.s starting from the second character.
a. If the current character is the same as previous, increment count.
b. If the current character is different, update max_count with the maximum of max_count and count, then reset count to 1.
c. Update previous to the current character.max_count one last time to account for the last substring.max_count.