Solution to Sum Time Exercise