LeetCode: Longest substring with at most two distinct characters in JAVA (Detailed explanation)

Published --