Microsoft Interview Question

How to split a string without using the split method?