Itertools Combinations Hackerrank Solution Python