https://medium.com/@kuldeepkumawat195/mastering-pythons-itertools-library-a-comprehensive-guide-100e410ce383