getFactorial