Take as input N, a number. Print the pattern as given in output section for corresponding input.
1 2 3 4 5
1 2 3 4 *
1 2 3 * * *
1 2 * * * * *
1 * * * * * * *
The code is givimg correct output on ide but it’s not passing the test cases of the challenge given above.