Adding problem #48 solution.