Count the Number of Beautiful Subarrays

Count the Number of Beautiful Subarrays - Coding Problem | K5kC