I\'ve been trying on a contiguous array problem : count all subarray that starts with or ends with each index within an array, with constraint that the value of arr[i] of the su