Basic Dynamic Programming Leetcode Reddit