結果 : itertools permutations () hackerrank solution in python