clearAllIntervals

A class that tracks the intervals it starts and clears them all at once.

Asked in Meta frontend interviews