Gabriel Pereira de Carvalho's submission of Improve the Permutation | CodeChef