How many ways to construct an increasing list given cards
There are N people and cards. They are divided into N cards with the number 1, N with the number 2, N with the number 3, and so on. Each person will choose one card and give it back afterwards. How many ways to make a line with N cards such that they are sorted in increasing order For example: 4 will give 35 ways. (1,2,3,4, 2,2,2,4 , 3,4,4,4, ...etc)
The answer I found is . However, I cannot see the logic behind it?