Presto Interview Question

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