Adding problem #29 solution.