Permutation  solution 1,handle situations of no duplicate numbers