Given a vector<vector<int>> v, return an vector whose [i][j] element is the average of the neighbors of v[i][j] in the N, E, S, W direction. You may assume that there are elements in all directions.
vector<vector<int>>
v
vector
[i][j]
v[i][j]