StackPermutation Input a number sequence 1,2,3,...,N. Output all possible permutations after in/out stack.