Create nextPermutation.cpp

You can solve this problem using next_permutation() function in stl, or you can implement it by yourself.