• + 1 comment

    Python 3 one liner:

    print(max([sum([*arr[i][j:j+3],*arr[i+2][j:j+3],arr[i+1][j+1]]) for j in range(4) for i in range(4)]))