Texas Instruments interview question

They asked me memcpy function design