Pregunta de entrevista de Cepton

they asked to implement a disjointed-intervals program