David's submission of Next Permutation | CodeChef