Alternating_permutation