Given an m x n binary grid of 0s and 1s, count the total number of square subgrids composed entirely of 1s.
m x n
0
1
Visualizer will appear here