Domanda di colloquio di Jane Street

How would you reimplement the UNIX command cp ?