Arrays-Wave Print Row Wise

all test cases are giving a run error. Please correct me

@nirbhayvashisht
The mistake you are doing is:
image
while taking input inside for the 2D matrix you are using row and col,as arr[row][col] which should be replaced with arr[i][j] because row and col are itself the boundaries of matrix,hence it will give Arrays.Out.Of.Bounds.
Please reply back if it resolves your problem else i will still be glad to help you.