1101 Multiply and Add (segment tree)