Every season at the honeycomb cliffs of Beeswick, someone must tally the donation drive. This year the task falls to Sahil, armed only with the letters register. Task: Print the length of the longest run of the same character. Input format: One line with a single lowercase string s. Output format: Print the maximum run length. Constraints: 1 <= |s| <= 1044; s contains lowercase English letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s| <= 1044; s contains lowercase English letters.
