What is my mistake
hey @bhavyajain, in case of multiple testcases you need to print them in different lines. So add endl after cout<<c;
Moreover you need to add NULL character after at j=l. Because cout print till NULL character and it is possible the there might be some garbage value at arr[l];
I have updated your code https://ide.codingblocks.com/s/108563