Nikolay Domashenko's submission of Average Permutation | CodeChef