Count the Submatrices

Problem Name:
Count the Submatrices
Site:HackerEarth
Links:
Tags:
Problem setters: