Rosetta Problems

Permutation counting

https://marisaoj.com/problem/376