Trello interview question

Probability of string occurrence from a passage.