Given a string s, the power of the string is defined as the maximum length of a non empty substring that contains only one unique character.
Return the power of s.
Constraints:
s.length
s consists of only lowercase English letters.
Given a string s, the power of the string is defined as the maximum length of a non empty substring that contains only one unique character.
Return the power of s.
Constraints:
s.length
s consists of only lowercase English letters.