Use a combination when order does not matter:
Return the number of ways to choose r items from n.
r
n
solve(12, 3) -> 220 # a 3-person team from 12
Sign in to write and run your own code.
solve(...)