Sponsored
Use these hints if you're stuck. Try solving on your own first.
Calculate the frequency score of each subarray of size k and return the maximum one.
Use the sliding window technique to keep the frequency scores.
Solve with full IDE support and test cases