What does “in-place” mean?
In-place means that you should update the original string rather than creating a new one. Depending on the language/framework that you’re using this could be impossible. (For example, strings are immutable in .NET and Java, so it would be impossible to perform an in-place update of a string without resorting to some evil hacks.)