Walmart Interview Question

Factorial numbers calculation optimizations