Snap Interview Question

Write code to split words in a spaceless string e.g. "thesearewords" -> "these", "are", "words"