Pregunta de entrevista de Twitch

question regarding segment tree and graph theory