Exact Solutions of Dirac Equation on A 2D Gravitational Background