We investigate an initial boundary value problem for one dimensional parabolic equation in two disconnected intervals. A finite difference scheme for its solution is proposed and investigated. Convergence rate estimate compatible with the smoothness of input data is obtained.