Count Inclusive-Band Sums of Nonempty Index Ranges
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Other
Overview: Count Inclusive-Band Sums of Nonempty Index Ranges. Return the number of nonempty contiguous ranges whose sum lies between lower and upper inclusive. Count index ranges separately even when their sums are equal.