Dynamic Programming Pattern Leetcode Contest Questions