Split String Into Substrings Python Interview