Solve finding the longest substring in it such that the substring contains only 2 unique characters problem.