On the solution of a third order linear homogeneous difference equation with variable coefficents