Arrays-Wave Print Row Wise

NOT ABLE TO UNDERSTAND WHAT I AM DOING WRONG
https://ide.codingblocks.com/s/253973