Count Sawtooth Subarrays

Company: Visa_3Dec

Difficulty: easy