D-Power Permutations | CodeChef