Meta interview question

Get the longest substring from a string