Datadog Interview Question

Print n!, (n-1)!, ... in an efficient way