Sum of Squares with Segment Tree (#3984) - Basecamp