Reference output does not match with combinatorics
Suppose we pass an array of 1 ([1,1,1,1,1,1])  as rollMax array. Thus, this problem turns into "Permutations without Repetition" problem.\nAnd there is exact fo
Suppose we pass an array of 1 (`[1,1,1,1,1,1]`)  as rollMax array. Thus, this problem turns into "Permutations without Repetition" problem.\nAnd there is exact formula exist:\n```\nP(n, k) = n!/(n - k)!\n```\nSources:\nhttps://en.wikipedia.org/wiki/Permutation#k-permutations_of_n\nActually, I started investigateion from this page in [russian](https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D0%B7%D0%BC%D0%B5%D1%89%D0%B5%D0%BD%D0%B8%D0%B5).\n\nSo, according to this formula, for three items answer will be 120, for 4 - 360.\nBut in reference output for 3 is 150 and for 4 - 750.\n\nOn which step my reasoning went into the wring direction? Or what we shall do, if I\'m right?
[]