Test problem 6 solution