Google Interview Question

write a string splitting function that did not copy the string