Karthik's submission of Count Permutations | CodeChef