Disney+ Hotstar Interview Question

DFS algorithm longest common substring from the given string