M  next_permutation.cpp