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
Reset

Practice a different Java exercise