Practice · 1 of 4
Counter with a floor
CHALLENGE
Difficulty: beginner+25 XP
Implement nested class Solution.Counter: starts at 0; Increment() adds 1; Decrement() subtracts 1 but the value **never goes below 0**; read-only Value property.
Press Submit to check your solution.
Back to lesson: Practice: Class workout