Segment Tree Analysis — 2659. Make Array Empty

Problem statement: