Question d’entretien chez Fortinet

Python code to find sum of factorial in given array.