Jane Street interview question

How would you reimplement the UNIX command cp ?