HIR180's submission of Minimum Good Permutation | CodeChef