Arrays-Wave print Column Wise

2 test cases are showing wrong …which test case is failing and what is the error