Magic Squares In Grid (Easy Google)
Input: [[4,3,8,4],
[9,5,1,9],
[2,7,6,2]]
Output: 1The following subgrid is a 3 x 3 magic square:
438
951
276
while this one is not:
384
519
762
In total, there is only one magic square inside the given grid.