import java.io.*; import java.util.*; class Solution { static int[][] deltas = {{0,1},{0,-1},{1,0},{-1,0}}; static boolean[][] visited; static char[][] map; static int R,C; public int[] solution(String[] maps) { R = maps.length; C = maps[0].length(); map = new char[R][C]; visited = new boolean[R][C]; for(int i=0; i< R; i++){ map[i] = maps[i].toCharArray(); } for(char[] c: map){ System.out.printl..