Count Complete Subarrays in an Array | Leetcode 2799