Itertools Combination Hackerrank Solution For Loop