Use a permutation when order matters and repetition is not allowed:
Return the number of ways to fill r distinct ordered roles from n people.
r
n
Input
n = 12 r = 3
Output
1320
solve(...)