Question d’entretien chez Google

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