Mathison and the number of permutations

Problem Name:
Mathison and the number of permutations
Site:HackerEarth
Links:
Tags: