Itertools Combinations Hackerrank Solution