Pregunta de entrevista de Microsoft

Implementing interval trees data structure based on certain state