Problem: Please find the problem here. Solution: This is simply the permutation coefficient. All we need to do is to compute it. Code: