Goldman Sachs interview question

dsa questions -graph and dp