Using a for loop, create a function that sums the factorials up to its parameter (1! + 2! + ... + n!).
for
1! + 2! + ... + n!