Pls look into this the pattern is printed correctly but only 1 test case is passing


pls look into this the pattern is printed correctly but only 1 test case is passing

@Madhavendra-Gupta-2240591552663161,
Try your code on this,

Input
4

Bhaiya i have tried it my code is perfectly working.Pls tell me the error.

@Madhavendra-Gupta-2240591552663161,
I think there is some mistake in your understanding of problem,
On,

Input
4

Correct Output
1 2 3 4
1 2 3 *
1 2 * * *
1 * * * * *

Your Output
12345
1234*
123***
12*****

Also mind the black spaces in b/w characters.