Question d’entretien chez Xoriant

longest substring which is common input - ['abcd', 'abc','abef'] output = ab