Itertools Hackerrank Solution Python Interpreter