permutation-ii

just use next_permutation in c++