Segment Tree - Preparation to IOI Part 4