Replace with Sum of greater nodes

can you please explain the tree formation here by inorder array.