Yerzhan Utkelbayev's submission of Just Some Permutations 3 | CodeChef