X245: equalIsNot

Given a string, return true if the number of appearances of "is" anywhere in the string is equal to the number of appearances of "not" anywhere in the string (case sensitive).

Examples:

equalIsNot("This is not") -> false
equalIsNot("This is notnot") -> true
equalIsNot("noisxxnotyynotxisi") -> true

Your Answer:

Feedback

Your feedback will appear here when you check your answer.