Solved Decode Ways problem with DP method