Create nextpermutation.cpp