This is a Combinatorics Problem
Consider the problem of finding the number of ways to distribute7 identical pieces of candy to 3 children so that no
child gets more than 4 pieces. Except Stanley (one of the 3children) has had too much candy already, so he’s only
allowed up to 2 pieces. Write a generating function & use yourgenerating function to solve this problem.