STMicroelectronics Interview Question

Write Factorial with optimized solution, suduko solver