Pergunta de entrevista da empresa Akamai

Program to print longest substring from a repeating chars string