WD interview question

How do you implement memcpy function in C++?