Tech Mahindra Interview Question

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