Pergunta de entrevista da empresa Microsoft

Write a method (in Java) that would find the longest common substring in two strings