public static void solve(Scanner file, Map<String,List<String>> suggestions) {
		while(file.hasNext()) {
			String pal = file.nextLine();
			for(String s : suggestions.keySet()) {
				if(pal.length() == s.length() && !pal.equals(s) && eqWord(pal,s)) {
					suggestions.get(s).add(pal);
				}
			}
		}
		
		SortedSet<String> set = new TreeSet<String>(suggestions.keySet());
		for(String s : set) {
			String res = s + " ->";
			for(String p : suggestions.get(s)) {
				res += " " + p;
			}
			System.out.println(res);
		}
	}