Sponsored
Use these hints if you're stuck. Try solving on your own first.
A string is incorrect if it contains a character that is not allowed
Constraints are small enough for brute force
Solve with full IDE support and test cases