Google interview question

Min Heap, Longest Common Substring, DFS