Write a Playlist tracking a song count and a total length in seconds, both starting at zero. addSong takes a length and updates both. totalMinutes returns the total length in whole minutes, rounded down.
class Playlist { Playlist(); void addSong(int seconds); int songCount(); int totalMinutes(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.