Stars And Bars Problems 1735. Count Ways to Make Array With Product (Hard) Reference https://en.wikipedia.org/wiki/Stars_and_bars_%28combinatorics%29