For a better understanding of the problem, here is an example:
Let $n=3$ and $d=2$, then we have all possible choices for putting $2$ balls into $3$ bins as:
$$B = \{(2,0,0),(0,2,0),(0,0,2),(1,1,0),(1,0,1),(0,1,1)\}.$$
The elements in the first row of the matrix $V$ are computed as...