Marcos Kolodny's submission of Good Permutations | CodeChef