First n index should be empty after shifting n units forward

sir since we are assigning ch[l+n]=ch[l-1];
then the first n index should be empty.

as we do in swaiping problem by considering a temp variaable ,
like
int temp;
int a=4,int b=5;
temp=a;
a=b;
b=temp;

from this we can say a become empty after assing into temp thats why we are able to assign b into a;

hi @princekmr99058_99c9453df267fd18,
we are assigning a[i+n] = a[i]
in this way we are shifting and making n spaces available

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.