Goldman Sachs Interview Question

Trie, Graphs, DP, famous algorithm