problem 9 solved - 0.476463 seconds