Master Function Approach to Solution of Dirac Equation in (1+1)-Spacetime