Failing test cases
Check the sample output and match with your output.
Sample Output
11, 21, 31, 41, 42, 43, 44, 34, 24, 14, 13, 12, 22, 32, 33, 23, END
There must be a whitespace after every comma
still 1 test case failing
Increase the size of your 2d and then check.
You can verify your approach with this https://ide.codingblocks.com/s/271121