AC Next Permutation