Vertex Interview Question

Find the longest substring in the list of strings.