Decode Ways, DP problem