Sponsored
Use these hints if you're stuck. Try solving on your own first.
You can return an object with methods.
Initialize a variable for currentCount. Inside these methods, add the appropriate logic which mutates currentCount.
Solve with full IDE support and test cases