using System.Collections.Generic;
public static void Main()
Dictionary<char, int> lookUp = new Dictionary<char, int>();
for(int right = 0; right < s.Length; right++)
if (lookUp.ContainsKey(c))
lookUp.Add(c, right + 1);
longest = Math.Max(longest, right - left + 1);
Console.WriteLine(longest);