Sponsored
Use these hints if you're stuck. Try solving on your own first.
There are only two operations to keep track of.
Use a variable to store the value after each operation.
Solve with full IDE support and test cases