Adobe Interview Question

Longest substring given a string