import { factorial } from "https://dotland.deno.dev/x/simplestatistics@v7.8.3/index.js";
A Factorial, usually written n!, is the product of all positive integers less than or equal to n. Often factorial is implemented recursively, but this iterative approach is significantly faster and simpler.