Anyone available to solve a doubt from another topic of DSA not yet covered in class?

I have a doubt from the topic of strings.