Leetcode 2962. Count Subarrays Where Max Element Appears at Least K Times | Hello Interview