e.solutions Interview Question

how to implement a function like std::strcpy?