Example 1

Example 2

Example 3

rows == grid.lengthcols = grid[i].length1 <= rows, cols <= 8grid[i][j] consist only of characters 'C', 'M', 'F', '.', and '#'.There is only one of each character 'C', 'M', and 'F' in grid.1 <= catJump, mouseJump <= 8Example 1

Example 2

Example 3

rows == grid.lengthcols = grid[i].length1 <= rows, cols <= 8grid[i][j] consist only of characters 'C', 'M', 'F', '.', and '#'.There is only one of each character 'C', 'M', and 'F' in grid.1 <= catJump, mouseJump <= 8