Similarly to http://question.onlinegdb.com/10339/merge-array-particular-position-that-position-given-user-java?show=10342#a10342, you should first
- Clear the requirements. How do you copy the string from source to target?
- Replace the string? If source is shorter, will target only contain characters from source?
- Overwrite characters? If source is shorter, the remaining characters are kept in target after source has been written in there?
- Concatenate? Keep target's content intact and insert source right after target's original content is finished?
- Then try to do the implementation yourself.
- When you run into a problem, post your (clarified) requirements and your attempt to solve the problem so people can have a look and point out how it could be done (better).
Good luck!