Intuit interview question

implement our own memcpy function with space constraint reverse the words in a string