Pergunta de entrevista da empresa Fortinet

Python code to find sum of factorial in given array.