you give integer array nums array query queriesi vali indexiFor query apply numsindexi numsindexi vali print sum value numsReturn integer array answer answeri answer ith query Example 1input num 1234 query 10314023output 8624explanation at begin array 1234after add 1 nums0 array 2234 sum value 2 2 4 8after add 3 nums1 array 2134 sum value 2 4 6after add 4 nums0 array 2134 sum value 2 4 2after add 2 nums3 array 2136 sum value 2 6 4example 2input num 1 query 40output 0 constraints1 numslength 104104 numsi 1041 querieslength 104104 vali 1040 indexi numslength