Number of Pairs After Increment
Apply range increments to nums2 directly, and answer each sum query by counting matching values in a frequency table.
Apply range increments to nums2 directly, and answer each sum query by counting matching values in a frequency table.