I\'m trying to find a number of adjacent elements in a 2D array. When I say adjacent, I mean both horizontally and vertically.
For example:
[[1, 2, 1,