Topic: Array Problem / Level: advanced

Problem: Find the maximum sum of a subarray with at least one element and at most k distinct elements using a sliding window and hashing.

Run the code to see the output here...