prob 17 solved