DP problem help

I think Backtracking would help.

13 Likes
//