Count of Interesting Subarrays | Leetcode 2845