Cutting Rod Dynamic Programming Leetcode Questions