Input: Array and range [lower, upper].
Output: Count of subarray sums within range.
Example: Count subarrays with sum in [lower,upper].
Constraints: 1≤ nums.length ≤105. −105≤ lower ≤ upper ≤105.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
The problem
Input: Array and range [lower, upper].
Output: Count of subarray sums within range.
Example: Count subarrays with sum in [lower,upper].
Constraints: 1≤ nums.length ≤105. −105≤ lower ≤ upper ≤105.