public static void show(String s, String s1) {
TreeMap<String, Integer> tm = new TreeMap<>();
for (int i = 0; i < s.length(); i++) {
int t = 1;
;
for (int j = 0; j < s1.length(); j++) {
if (s.charAt(i) == s1.charAt(j)) {
while (i + t < s.length() && j + t < s1.length()
&& s.charAt(i + t) == s1.charAt(j + t)) {
t++;
}
String st = s.substring(i, i + t);
tm.put(st, t);
}
}
i += t - 1;
}
System.out.println(tm);
}