Spotify interview question

coding interview: return list of texts between two given string in a paragraph