Solve problem 139