Number of Subarrays with Bounded Maximum — CaffeCode