import java.util.*; public class Solution { LinkedHashMap<Character, Boolean> map=new LinkedHashMap(); //Insert one char from stringstream public void Insert(char ch) { map.put(ch, !map.containsKey(ch)); } //return the first appearence once char in current st...