https://www.geeksforgeeks.org/permutation-coefficient/