Given $N$ boxes, with each box having maximum capacity to store and $M$ balls, find in how many ways can the balls be arranged in those boxes?
Example: $N=2$ such that their max capacity is $5$ and $5$ respectively, $M=3$.
Then answer is $4$: Possible arrangements are $(3,0) (0,3) (2,1) (1,2)$