Domanda di colloquio di Illumina

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