Question d’entretien chez MSCI

find longest common substring in given string