Pergunta de entrevista da empresa SAP

Write a method that a string full of space separated words, return an array of words.