Pregunta de entrevista de Akamai

Program to print longest substring from a repeating chars string