Count the Number of Good Subarrays

Count the Number of Good Subarrays - Coding Problem | K5kC