Dynamic Programming Pattern Leetcode Contest Sunday