Amazon Review Score π
Amazon allows customers to add reviews for the products they bought from their store. The review must follow Amazon's community guidelines in order to be published.
Suppose that Amazon has marked n strings that are prohibited in reviews. They assign a score to each review that denotes how well it follows the guidelines. The score of a review is defined as the longest contiguous substring of the review which does not contain any string among the list of words from the prohibited list, ignoring the case.
Given a review and a list of prohibited string, calculate the review score.
Complete the function findReviewScore in the editor.
findReviewScore has the following parameters:
review: a stringstring prohibitedWords[n]: the prohibited wordsReturns
int: the score of the review1Example 1
2Example 2

3Example 3
Constraints
Limits and guarantees your solution can rely on.
1 <= |review| <= 1051 <= n <= 101 <= prohibitedWords[i] <= 10review consists of English letters, both lowercase and uppercaseprohibitedWords[i] consists of lowercase English letters