4
Given a non-empty rectangular array of integers from 0 to 9, output the amount of cells that equal 8 and do not have a neighbour equal to 8. Neighbouring is here understood in the Moore sense, that is, including diagonals. So each cell has 8 neighbours, except for cells on the edges of the array....