Day 56: 1D Dynamic Programming Continued