I am confused about how to get sum from a node y to its ancestor x using a segment tree. there is query of 10^5 order consists of update and find sum of the nodes between them.!↵
![ ](/predownloaded/c9/d0/c9d0e95f10d029e78386b0d19b55f64bf508af5a3b/35/3b3574a06a5d9d282a820eccc7aad80715bec20e.png)
![ ](/predownloaded/