Pergunta de entrevista da empresa Gridlogics

Find longest sequence of a character from a string?