If a process happens in stages with n1,n2,…,nkn_1, n_2, \ldots, n_kn1,n2,…,nk choices, the total number of outcomes is the product:
Given a list of per-stage counts, return the total number of outcomes.
Input
[3, 4, 2]
Output
24
solve(...)