Wave print column wise

my code is giving same output as per requirement but the test cases are failing,
atleast give the error discription so we can work on that