Solution for Decode Ways via DP.