problem_34 solution