Microsoft Interview Question

implement the function memcpy