Given a total number of items n and a selection size r, calculate the number of permutations and combinations possible.
Formula
nPr = n! / (n−r)!, nCr = n! / (r!(n−r)!)