Another O(n) DP solution to the decoding number problem.