Leetcode 1248. Count Number of Nice Subarrays | Hello Interview