Pregunta de entrevista de autofleet

find the longest substring in a given string.