Advent of Code 2025, day 7: Dynamic programming

Programming, but dynamically