Frage im Vorstellungsgespräch bei Accenture

Maximum consecutive repeating character in string [DSA Question]