z1j1n1's submission of Minimum Good Permutation | CodeChef