Video solutions for “Maximize Sum of At Most K Distinct Elements” are not available yet. Check out the text solution instead.