complete permutation
complete solution 2. but it is slow than the solution 1. so comment it. the problem is O(n!).