Pregunta de entrevista de Jane Street

How would you reimplement the UNIX command cp ?