Number Of Permutations

CodeForces - 1207D