Problem Set 04B: Dynamic Programming Part 2