Pregunta de entrevista de Avant

Write a function to clear all active setTimeouts. Follow-up question also on closure.