Alarm.com interview question

Implement memmove without using a temporary array