Query Bits hackerblocks

https://hack.codingblocks.com/practice/p/345/725
Could some one help me on how to merge two nodes of segment tree to form the number.