Anuj Maheshwari's submission of Minimum Good Permutation | CodeChef