Sponsored
Use these hints if you're stuck. Try solving on your own first.
How many possible states are there for a given expression?
Is there a data structure that we can use to solve the problem optimally?
Solve with full IDE support and test cases