Longest substring shared by 2 strings

Sign in to test your solution.