pls look into the code it is printing abcba correctlly but why is it printing afterwards i have dryrun the code but couldnt find the mistake
Pls Resolve the problem and revert back asap
i have returned from the condition
(in[i]==in[i-1])
because if this is is satisfied u do not need to make the call for duplicate(in,out,i+1,j+1);
because j should not be incremented only i should