Illumina interview question

How would you search for the longest substring in a given string?