There is several ways for this kind of work. But it depends on the language you are using. As an example, in c# there is a string function called Insert(). Using that function you can easilly do this task. There is some equivallent functions in most of the language. You should consult the respected documentation.
In c++ 0 is for false and 1 is for true. Use boolalpha for literal use of true and false.
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
There is several ways for this kind of work. But it depends on the language you are using. As an example, in c# there is a string function called Insert(). Using that function you can easilly do this task. There is some equivallent functions in most of the language. You should consult the respected documentation.
What is your problem?
Look at the function return type, and then at the value you're trying to return.
This comment is hidden because it contains spoiler information about the solution