Jane Street Interview Question

How would you reimplement the UNIX command cp ?