Microsoft Interview Question

write a code snippet to implement memcopy function.