Dynamic Programming Pattern Leetcode Contest Today Gold