ascending order로 먼저 시작을 해야지 next_permutation이 제대로 동작할 수 있다. from https://stackoverflow.com/questions/31258426/why-does-next-permutation-skip-some-permutations