3113. Find the Number of Subarrays Where Boundary Elements Are Maximum