結果 : itertools product () hackerrank solution in python