Use next permutation.AC