Pergunta de entrevista da empresa Oracle

Write a recursive program to calculate factorial and asked about how the calling of function takes place and how the stack is used for that