If row number is n (>1), total character is n. First and last character is n-1 and rest are 0.
The above is the explanation given in the problem so the sample output is
1
11
202
3003
40004
But according to the explanation output should be :
0
11
202
3003
40004