EvolutionaryScale interview question

Build a cartesian product iterator in Python