https://qinghaoh.github.io/posts/segment-tree/
Segment Tree - Qinghao's Blog