Array Wave Print column Wise

testcase not pass no complication error

hi @sudhanshukrmfp_acfc313069fd8e87,
question has swapped n and m