Daily challenge for 2025-01-21
21. Factorial
Write a function solve that returns the factorial of a given integer n. Return 1 if n is 0. The factorial of a non-negative integer n is the product of all positive integers less than or equal to n.
Example:Input: 5Output: 120
Run this challenge interactively in Python or JavaScript when the app loads.