Tech Mahindra interview question

Question from resume Programming question (split the word in the sentence)