Goldman Sachs Interview Question

dsa questions -graph and dp