You are given a matrix of neurons and update it one step, in the style of LeetCode 289 (Game of Life) with different rules. Two graded parts: first with a copy of the grid, then in place. The rules as posted: Given a matrix of 'neurons', where each element is…