NVIDIA interview question

Write implementation of strcpy method.