I run the same testcase in my IDE, the result is 1. Why here is 2.

```
Input:
["W","E","W","0","E"]
Output:
2
Expected:
1
```

```
public int maxKilledEnemies(char[][] grid) {
int m = grid.length;
if(m == 0) return 0;
int n = grid[0].length;
int rowKill=0, res = 0;
int[] colKill = new int[n];
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
if(j==0 || grid[i][j-1] == 'W'){
rowKill = 0;
for(int k=j;k<n && grid[i][k]!='W';k++){
rowKill += grid[i][k] == 'E'?1:0;
}
}
if(i==0 || grid[i-1][j] == 'W'){
for(int k=i;k<m && grid[k][j]!='W';k++){
colKill[j] += grid[k][j] == 'E'?1:0;
}
}
if(grid[i][j] == '0'){
res = Math.max(res, rowKill + colKill[j]);
}
}
}
return res;
}
```