Test cases are not satisfying

#include
using namespace std;

void columnwaveprint(int arr [][10],int r,int c)
{
int i,j;
for(j=0;j<c;j++)
{
if(j%2==0)
{
for(i=0;i<r;i++)
{
cout<<arr[i][j]<<",";
}
}
else{
for(i=r-1;i>=0;i–)
{
cout<<arr[i][j]<<",";
}
}
}
cout<<“END”;
}
int main() {
int r;
cin>>r;
int c;
cin>>c;
int arr[10][10];
for(int i=0;i<r;i++)
{
for(int j=0;j<c;j++)
{
cin>>arr[i][j];
}
}
columnwaveprint(arr,r,c);

return 0;

}

@Bhavit_Singla hey Bhavit I think there is only space give space in output statement in your program .