solve Factorial