Solved problem 112 (bouncy numbers).