During one of my recent interviews, I was asked to implement and test a user defined version of memcpy() function in C++.
My code was something like this: