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;