What was your question? Is it “please split a string by whitespace”, and do you accept s.split() as a correct answer?
One google interviewers ask me a question that starts with “implement google search” and ends with my implementing splitting a paragraph. Of course I failed the interview, but I have to think he has failed me way before we get to write any code.