Intel Corporation Interview Question

find longest substring