Number of Subarrays with Bounded Maximum

Answer Panel