Trimble interview question

write a function which does string copy.