Segment Tree working implementation 11235