import java.util.*; public class Solution { LinkedList<Character> list = new LinkedList(); Map<Character, Integer> map = new HashMap(); //Insert one char from stringstream public void Insert(char ch) { // hashmap key char value count // !contains hashm...