Segment Tree - LeetCode