Pregunta de entrevista de Trimble

write a function which does string copy.