Adobe interview question

Longest substring given a string