Topic: Queue Problem / Level: advanced

Problem: Write a program to find the longest substring with at most two distinct characters using a queue.

Run the code to see the output here...