11. Fundamental Counting Principle

Easy

If a process happens in stages with n1,n2,…,nkn_1, n_2, \ldots, n_k choices, the total number of outcomes is the product:

∣Ω∣=∏i=1kni|\Omega| = \prod_{i=1}^{k} n_i

Given a list of per-stage counts, return the total number of outcomes.

Input

[3, 4, 2]

Output

24
Implement solve(...)