Write a Timer holding a number of seconds. tick takes one second off, but never below zero. isFinished returns true when it has reached zero, and getSeconds returns the value.
class Timer { Timer(int seconds); void tick(); boolean isFinished(); int getSeconds(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.