結果 : common permutation problem in python