We consider a discrete analogue for 1-D boundary value problem arising by use a four-point difference scheme on nonuniform mesh. The matrix from this analogue we describe as a product two M-matrices and derive explicit inverse matrices.