Comcast interview question

Longest substring