Count Subarrays With Majority Element I

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(n^2)

Space Complexity

O(1)