Lets suppose a string with no spaces: Input : "putreturnsbetwenparagaphs" Output : put returns between paragraphs
This could get more complex as more words overlap. How to achieve this really fast. If required does spell corrections and splits the word. Think about it.