Pregunta de entrevista de Disney+ Hotstar

DFS algorithm longest common substring from the given string