-1
Write a function where the function takes in 2 inputs a matrix, for example 2-dimensional array, and indices: for example [row, col] This function should return the sum of all the second inputs neighbors (up, down, left, right, diagonals)
Below is my solution. Just wanted to know if there is a b...