print permutations of a number