one more approach to permutaion sequence