APIs > segtree > RSumQ RSumQ RSumQ[S: AddMonoid](n: Int) -> SegTree[S] RSumQ[S: AddMonoid](v: List[S]) -> SegTree[S]