12. Selections With Replacement

Easy

When order matters and repetition is allowed, r selections from n options give:

nrn^r

Return the count.

solve(10, 4)  ->  10000     # a 4-digit PIN

Sign in to write and run your own code.

Implement solve(...)