problem 1 solution