Dynamic Programming Pattern Leetcode Solutions Cppd Knee X Ray