Topic: Language Problem / Level: advanced

Problem: Write a program to find the longest substring that contains at most k distinct characters.

Run the code to see the output here...