Goldman Sachs Interview Question

Permutation DP trees graph related