Pregunta de entrevista de Fortinet

Python code to find sum of factorial in given array.