Question d’entretien chez Disney+ Hotstar

DFS algorithm longest common substring from the given string