NVIDIA interview question

Write the C function memove.