Mean and variance of first passage time of non-homogeneous random walk