結果 : reaching permutation python code