Pergunta de entrevista da empresa DXC Technology

write a program to find factorial of a number?