Approximate occurrences of collection of patterns in a string

Sign in to test your solution.