Pergunta de entrevista da empresa Vertex

Find the longest substring in the list of strings.