Beam interaction in one-dimensional inhomogeneous Kerr nonlinear arrays