Akamai Interview Question

Program to print longest substring from a repeating chars string