In an integer array (size 10^5) the operations are like these...
- Do bitwise xor operation with every element from index L to R by a particular number X
- Find the sum of the numbers from index L to R.
How can i do it with segment tree and lazy propagation ?