Printing wave_form of the matrix


why my solution doesn’t passing all the test cases.

Change the size of array as ar[11][11] instead of ar[n][m].