solve permutation sequence