When order matters and repetition is allowed, r selections from n options give:
r
n
Return the count.
solve(10, 4) -> 10000 # a 4-digit PIN
Sign in to write and run your own code.
solve(...)