Illumina Interview Question

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