update wrong solution for leetcode Next Permutation