Yash Kulkarni's submission of Next Permutation | CodeChef