Segment Tree Analysis — 3161. Block Placement Queries

Problem Statement: