Non-intrusive domain decomposition algorithm for solving nonlinear problems