12. Selections With Replacement

Easy

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

nrn^r

Return the count.

Input

n = 10
r = 4

Output

10000
Implement solve(...)