Pergunta de entrevista da empresa Google

write a string splitting function that did not copy the string