Topic: Hashing Problem / Level: intermediate

Problem: Write a function to find the longest substring with exactly two distinct characters using hashing.

Run the code to see the output here...