Wrote CalculateFactorialSum().