Count Subarrays with Bounded Range

Company: Google

Difficulty: medium