Is it possible to make another empty array of string let named it output arr and add the characters into it and if we got a null operator then we simply print the out array

it doesnot effect the original string so we don"t require the backtracking step ??
is it possible to do this ques in this manner ?

hello @anshulgurawalia

no it will not be helpful.
becuase at any stage of recursion ,all its previous changes matter so u cant simply create new output array using input array at every step.