Next Permutation Function In Cpp W3schools