Stopwatch
Manage a browser interval safely with an effect.
Requirements
- Create exactly one interval while running.
- Use a functional state update inside the timer.
- Clean up the interval on pause and unmount.
- Format elapsed time as
MM:SS.
- Reset both elapsed time and running state.