Day 58: 2D Dynamic Programming Continued