Nikolay Domashenko's submission of Permutation Xority | CodeChef