Question

Write a function to find the sum of all factorials from 1 to given number?

Login to Submit

Examples

Input: 2
Output: 3
Reason: 1! + 2! = 3