1248. Count Number of Nice Subarrays - Explanation

Problem Link