Fortinet Interview Question

Python code to find sum of factorial in given array.