Longest run of one character
Given a string, return the length of the longest run of a single repeated character (consecutive identical characters). An empty string has a longest run of 0.
"aabbbbcc" -> 4 # the run of b's
"abcabc" -> 1 # no character repeats consecutively
"" -> 0
Return the longest run length in time and space.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.