import java.util.*; public class horsePool{ static HashMap shift = new HashMap<>(); static void shiftTable(String pattern){ for(char ch = 'A'; ch<='Z';ch++) shift.put(ch, pattern.length()); shift.put(' ', pattern.length()); for(int i =0;i