Mark Kornejchik's submission of Count Permutations | CodeChef