Pergunta de entrevista da empresa Counterpoint Consulting

Write a function to find a factorial of a given number