print all the permutation, but the sequence is not follow the requirement. need some modification.