Dynamic Programming In Leetcode Contest