Masoom Mittal's submission of Good Permutation | CodeChef