graph_problem(DP)->HELP

TASK can anyone help me out with this problem??