Problem:
Please find the problem here.
Solution:
This is simply the permutation coefficient. All we need to do is to compute it.
Code:
Copyright (c) 2024 Andrew Au