Soltution to the decode numbers problem.