solved [permutation sequence]