XYZ interview question

DSA problem solving dp graphs