max Path Problem, dynamic problem, good