Calculates the number of permutations of r items taken from n.
r
n
BigInt nPr(int n, int r) => factorial(n) ~/ factorial(n - r);