Quantcast Interview Question

Longest Substring with up to 2 repeating characters.