Fazal's submission of Next Permutation | CodeChef