Numerical solution of a system of nonlinear differential equations with a nonlocal condition