Please tell me how can i solve this question without using another string

I want to modify the input string to contain the answer

u will have to do it using recursion
like using substr(0,i) + “*”+ substr(i+1);

since overwriting the original string would lead to a problem in computing for further inputs

i mean to say that hello
meh if u replace the 2nd l with ‘*’ then u would loose some part of the input string and lead to a WA
hence either use recursion or go for taking another string

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.