the number of black lonely pixels just in the twice situtation

1) Suppose variable x is the number of column which just have one 'B',

2) Variable y is the number of row, the row just have one 'B',

the answer of this question is get the minimum between x and y

W,W,W,W,W

W,B,W,W,W

W,W,B,W,W

W,W,W,W,B

W,B,W,W,W

x = 2

y = 3

the result is min(2, 3)

```
int findLonelyPixel(char** picture, int pictureRowSize, int pictureColSize) {
if (NULL == picture || 0 == (pictureRowSize * pictureColSize))
return 0;
int x = 0, y = 0, n = 0;
for (int i = 0; i < pictureRowSize; i++, n = 0) {
for (int j = 0; j < pictureColSize; j++)
n += (picture[i][j] == 'B' ? 1 : 0);
x += (1 == n ? 1 : 0);
}
for (int j = 0; j < pictureColSize; j++, n = 0) {
for (int i = 0; i < pictureRowSize; i++)
n += (picture[i][j] == 'B' ? 1 : 0);
y += (1 == n ? 1 : 0);
}
return x > y ? y : x;
}
```