Question d’entretien chez Jane Street

How would you reimplement the UNIX command cp ?