Output the longest substring that is the same in both strings.
String 1: Mary had a little lamb
String 2: Marry had a liddle love
The longest substring that is the same in both strings is " had a l".
Complete the following task based on the instruction and optional input provided.### Instruction:
Output the longest substring that is the same in both strings.

### Input:
String 1: Mary had a little lamb
String 2: Marry had a liddle love

### Output:
The longest substring that is the same in both strings is " had a l".