Niantic interview question

Modify a matrix with a 2D square "filter"