public class Solution { LinkedHashSet<Character> set = new LinkedHashSet<>(); //Insert one char from stringstream public void Insert(char ch) { if (set.contains(ch)) set.remove(ch); else set.add(ch); } //return the first appearence once char in current str...