Domanda di colloquio di Google

Code a method to split a string into an array based on spaces