Not passing the test case

My code = https://ide.codingblocks.com/s/666269

Code is giving the required output still i can’t pass the test case, please help me out with it.

hi @ayushkotwar2002_78a27ac2b05189a5,

if (in[i] == '\0') {
		out[j] = '\0'; // write this else it will print buffer stored data
		cout <<out<< endl;
		return;
	}

thanks for the help sir!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.