Arrays wave print row wise - all test case failing

Question link : https://online.codingblocks.com/app/player/213153/content/213768/4813/code-challenge

My solution link : https://ide.codingblocks.com/s/653823

solved was printing β€œEnd” instead of β€œEND” !