Domanda di colloquio di Presto

How to write code for finding largest substring in given 2 string?