Amazon interview question

Implement your own memcpy.