Rosetta Problems

Count the Number of Beautiful Subarrays

https://leetcode.com/problems/count-the-number-of-beautiful-subarrays