Trello Interview Question

Probability of string occurrence from a passage.