I have grid of point and want to calculate number of red and blue point surround by each point
red
blue
for example
For point( X marked )
<