Dynamic Programming Pattern Leetcode Contest Answers To Connections