Refactoring main.py

    Before: for ... for ...
    After: for ... itertools.product